<template>
  <div class="dashboard">
    <page-content
      pageName="goods"
      :contentConfig="contentConfig">
      <template #image="scope">
        <el-image
          style="width: 60px; height: 60px"
          :src="scope.row.imgUrl"
          :preview-src-list="[scope.row.imgUrl]"
        ></el-image>
      </template>
      <template #newPrice="scope">{{ '¥' + scope.row.newPrice }}</template>
      <template #oldPrice="scope">{{ '¥' + scope.row.oldPrice }}</template>
    </page-content>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

import PageContent from '@/components/page-content'

import { contentConfig } from './config/config.content'

export default defineComponent({
  name: 'rp-goods',
  components: {
    PageContent
  },
  setup() {
    return {
      contentConfig
    }
  }
})
</script>

<style scoped lang="less">
::v-deep .el-table .el-table__cell {
  position: static;
}
</style>
